package com.umeox.watch.prayertime.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;

import com.umeox.watch.moto.dataservice.DataProvider;
import com.umeox.watch.prayertime.base.BaseApp;


public class DateTimeReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        if (TextUtils.isEmpty(action) || !DataProvider.isActivated()) {
            return;
        }
        BaseApp.getInstance().schedulePrayerTimeAlarm();
    }
}
